﻿using System;
using System.Collections.Generic;
using System.Text;
using TianShu.Application.Localization.Resources.AbpDdd;
using TianShu.Auditing;
using TianShu.Localization;
using TianShu.Modularity;
using TianShu.VirtualFileSystem;

namespace TianShu.Service.Contracts
{
    [DependsOn(
        typeof(AbpAuditingModule),
        typeof(AbpLocalizationModule)
        )]

    public class TianShuServiceContractsModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            Configure<AbpVirtualFileSystemOptions>(options =>
            {
                options.FileSets.AddEmbedded<TianShuServiceContractsModule>();
            });

            Configure<AbpLocalizationOptions>(options =>
            {
                options.Resources
                    .Add<AbpDddApplicationContractsResource>("en")
                    .AddVirtualJson("/Localization/Resources/AbpDdd");
            });
        }
    }
}
